import { Redis } from "../common/redis";
import { LogFactory } from '../common/log';

async function main(){
    LogFactory.inst().init(process.cwd() + "/logs/", "log");
    let log = LogFactory.inst().getLogger("TestRedis");
    let redis = new Redis("localhost", 6379);
    await redis.set("token", new Date().getTime().toString());
    let token = await redis.get("token");
    log.info("token:", token);
}
main();